<?php


namespace app\api\model;


use app\common\controller\Api;
use think\Model;
use app\common\model\Comment as CommentModel;
class Comment extends CommentModel
{

    /**
     * 关联话题表
     *
     */
    public function topic()
    {
        return $this->hasMany('Topic','id','topic_id');
    }
}